﻿@model Project3.Models.PhotoCollectionAndId

@{
    ViewBag.Title = "IndiviualPhoto";
    var collect = Model.collection;
}

@if (collect.Count == 0)
{
    <h2>Individual Photos</h2>
    <p>Sorry there isn't a photo that matches.</p>
}
@if (collect.Count != 0)
{
    var photo = collect[0];
    <h2>@Html.DisplayFor(model => photo.Title)</h2>
    
    <center>
        <img style="display: block;" src ='@Url.Content(photo.LargeUrl)' alt =""/>
    </center>
}

<p>
@Html.ActionLink("Back To Meeting Photos",
    "MeetingPhoto",
    "Photo",
    new {id = Model.id , page = 1 },
    null)
</p>